package com.example.zaq.model;

import java.io.Serializable;
import lombok.Data;

/**
 * asp_kind_text_group
 * @author 
 */
@Data
public class AspKindTextGroup implements Serializable {
    private Integer tgId;

    /**
     * 模板名称
     */
    private String tgName;

    /**
     * 模板对应表表名
     */
    private String tgTable;

    /**
     * 模板说明
     */
    private String tgText;

    /**
     * 删除标志，1表示已删除
     */
    private Boolean delete;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AspKindTextGroup other = (AspKindTextGroup) that;
        return (this.getTgId() == null ? other.getTgId() == null : this.getTgId().equals(other.getTgId()))
            && (this.getTgName() == null ? other.getTgName() == null : this.getTgName().equals(other.getTgName()))
            && (this.getTgTable() == null ? other.getTgTable() == null : this.getTgTable().equals(other.getTgTable()))
            && (this.getTgText() == null ? other.getTgText() == null : this.getTgText().equals(other.getTgText()))
            && (this.getDelete() == null ? other.getDelete() == null : this.getDelete().equals(other.getDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getTgId() == null) ? 0 : getTgId().hashCode());
        result = prime * result + ((getTgName() == null) ? 0 : getTgName().hashCode());
        result = prime * result + ((getTgTable() == null) ? 0 : getTgTable().hashCode());
        result = prime * result + ((getTgText() == null) ? 0 : getTgText().hashCode());
        result = prime * result + ((getDelete() == null) ? 0 : getDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tgId=").append(tgId);
        sb.append(", tgName=").append(tgName);
        sb.append(", tgTable=").append(tgTable);
        sb.append(", tgText=").append(tgText);
        sb.append(", delete=").append(delete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}